using Engine;
using Engine.OldSerialization;

namespace RuthlessConquest {
    public class PlayerOrdersMessage : Message {
        public class Serializer : ISerializer<PlayerOrdersMessage> {
            public void Serialize(InputArchive archive, ref PlayerOrdersMessage value) {
                archive.Serialize("Orders", ref value.Orders);
            }

            public void Serialize(OutputArchive archive, PlayerOrdersMessage value) {
                archive.Serialize("Orders", value.Orders);
            }
        }

        public DynamicArray<Order> Orders = new();
    }
}